<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改地区信息')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-areaInfo-edit">
            <input name="id" th:value="${areaInfo?.id}" type="hidden">
            <input name="areaId" th:value="${areaInfo?.areaId}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label">包联干部人数：</label>
                <div class="col-sm-8">
                    <input name="baolianCadreNum" th:value="${areaInfo?.baolianCadreNum}" class="form-control digits" required type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label" th:text="${baolianAreaTitle}+'：'"></label>
                <div class="col-sm-8">
                    <input name="baolianAreaNum" th:value="${areaInfo?.baolianAreaNum}" class="form-control digits" required type="text">
                </div>
            </div>
        </form>

        <div class="box-footer">
            <div class="col-sm-offset-5 col-sm-6">
                <button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i class="fa fa-check"></i>保 存</button>&nbsp;
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "jjm/areaInfo";
        $("#form-areaInfo-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-areaInfo-edit').serialize());
            }
        }
    </script>
</body>
</html>